package com.qiuzhiyi.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.qiuzhiyi.R;
import com.qiuzhiyi.item.ShopItem;

/**
 * Author: Li
 * Date: 2017/11/20 0020
 * Description: 门店适配器
 */

public class ShopAdapter extends BaseQuickAdapter<ShopItem, BaseViewHolder> {
    public ShopAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, ShopItem item) {

        helper.setText(R.id.txt_name, item.getSuppcompany());
        helper.setText(R.id.txt_address, item.getSuppname());
        helper.setText(R.id.txt_phone, item.getSupptel());
    }
}
